package com.gnerv.business.platform.web;


import com.gnerv.business.platform.common.response.R;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import io.swagger.annotations.Api;

/**
 * @description: 登录前端控制器
 * @author: Gnerv LiGen
 * @date: 2018-07-04
 **/
@Api(tags = "登录")
@Controller
public class LoginController {

    @ResponseBody
    @RequestMapping(value = "/login")
    public R login(String account, String password) {
        return R.ok(R.OK_200);
    }

    @RequestMapping(value = "/logout", method = RequestMethod.GET)
    public String logout() {
        return "redirect:platform/login.html";
    }

}
